$(document).delegate('.course-box', 'mouseenter', function() {
			val = $(this).html();
			if (val !="") {
				$('.course-box').each(function(){
					if ($(this).html()==val) {
						$(this).addClass("hover");
					} 
				});
			}
		});
$(document).delegate('.course-box', 'mouseleave', function() {
			val = $(this).attr("id");
			$("."+val).removeClass("hover");
		});

function deleteUserByUsername(action, username) {
	if (confirm("Delete all "+username+"'s data? (This cannot be undone)")) {
		$.ajax({
				type:"POST",
				url:$("#project-base").val()+'Users',
				async: false,
				data: "action="+action+"&username="+username,
				success:function(msg) {
					window.location.href=$("#project-base").val()+"Users";
				}
			});
	}
}